﻿<%@ Page Language="C#" MasterPageFile="~/Master/Master.Master" AutoEventWireup="true"
    CodeBehind="home.aspx.cs" Inherits="BONSAI.UI.Pages.Home" Title="..:HoaBonSai:.. Mua Bán Hoa & Cây Cảnh " %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
        jQuery(document).ready(function() {
            var obj = document.getElementById("menu_top");
            var objli = obj.getElementsByTagName("li");
            for (i = 0; i < objli.length; i++) {
                objli.className = '';
            }
            document.getElementById('product_li').className = 'current';
        }); 
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content-menu-top">
        Danh sách sản phẩm tại
        <asp:Label ID="lbltype" runat="server" Text="hoabonsai.vn" EnableViewState="false"></asp:Label></div>
    <div class="content-menu-centter">
        <asp:ListView ID="lvwNews" runat="server" GroupItemCount="4" OnPagePropertiesChanging="lvwNews_PagePropertiesChanging"
            OnItemCommand="lvwNews_ItemCommand">
            <LayoutTemplate>
                <div>
                    <asp:PlaceHolder runat="server" ID="groupPlaceHolder">LayoutTemplate</asp:PlaceHolder>
                </div>
            </LayoutTemplate>
            <GroupTemplate>
                <div>
                    <asp:PlaceHolder runat="server" ID="itemPlaceHolder">GroupTemplate</asp:PlaceHolder>
                </div>
            </GroupTemplate>
            <ItemTemplate>
                <div class="home-group">
                    <div class="home-bg-top">
                    </div>
                    <div class="home-bg-center">
                        <div class="home-title link">
                            <asp:HyperLink ID="HyperLink1" NavigateUrl='<%#"~/home-detail/" + string.Format("{0}",Eval("ProductsID")) %>'
                                runat="server"><%# Eval("NameFull")%></asp:HyperLink></div>
                        <div class="home-img linkimg ">
                            <asp:HyperLink ID="HyperLink2" NavigateUrl='<%#"~/home-detail/" + string.Format("{0}",Eval("ProductsID")) %>'
                                runat="server">
                                <asp:Image ID="Image1" ImageUrl='<%# Eval("thumbnail")%>' runat="server" Style="border: none;
                                    max-height: 134px; max-width: 139px;" />
                            </asp:HyperLink>
                        </div>
                        <div class="home-bottom-left">
                            <%# Eval("PriceOld")%>
                            VNĐ</div>
                        <div class="home-bottom-right linkimg ">
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/add-to-cart.jpg"
                                ToolTip="Thêm vào giỏ hàng" CommandArgument='<%#Eval("ProductsID") %>' CommandName="addtocart"
                                Style="border: none;" />
                        </div>
                        <div class="height0">
                        </div>
                    </div>
                    <div class="home-bg-bottom">
                    </div>
                </div>
            </ItemTemplate>
        </asp:ListView>
        <div class="pagesize" style="clear: both;">
            <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvwNews" PageSize="12">
                <Fields>
                    <asp:TemplatePagerField>
                        <PagerTemplate>
                            <%#CalNumber(Container.TotalRowCount,4)%>
                            trang /
                            <%#Container.TotalRowCount%>
                            sản phẩm
                        </PagerTemplate>
                    </asp:TemplatePagerField>
                    <asp:NextPreviousPagerField ShowNextPageButton="False" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField ShowPreviousPageButton="False" />
                </Fields>
            </asp:DataPager>
        </div>
        <!--1-->
        <!--
		<div class="home-group">
			<div class="home-bg-top"></div>
			<div class="home-bg-center">
				<div class="home-title link"><a href="#">nfskajfhja</a></div>
				<div class="home-img linkimg "><a href="#"><img src="../Photos/product/2.jpg" style="border:none;" /></a></div>
				<div class="home-bottom-left">800.000 VNĐ</div>
				<div class="home-bottom-right linkimg "><a href="#"><img src="../Images/add-to-cart.jpg" title="Thêm vào giỏ hàng" style="border:none;"/></a></div>
				<div class="height0"></div>
			</div>
			<div class="home-bg-bottom"></div>
		</div>
		<div class="">1 2 3 4 5 ...</div>-->
        <!--end-->
        <div class="height0">
        </div>
    </div>
</asp:Content>
